package com.xbmd.wiki;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import lombok.extern.slf4j.Slf4j;

@SpringBootApplication
@Slf4j
public class App {

	public static void main(String[] args) {
		   // 获取spring容器
        SpringApplication springApplication = new SpringApplication(App.class);
        // 获取端口号
        String prot = springApplication.run(args).getEnvironment().getProperty("server.port");
        //启动日志
        log.info("启动成功");
        // 打印项目地址
        log.info("http://localhost:/" + prot);
	}

}
